[INFO] fetching crate asyncnsq 0.1.0...
[INFO] building asyncnsq-0.1.0 against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] extracting crate asyncnsq 0.1.0 into /workspace/builds/worker-5/source
[INFO] validating manifest of crates.io crate asyncnsq 0.1.0 on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate asyncnsq 0.1.0
[INFO] finished tweaking crates.io crate asyncnsq 0.1.0
[INFO] tweaked toml for crates.io crate asyncnsq 0.1.0 written to /workspace/builds/worker-5/source/Cargo.toml
[INFO] crate crates.io crate asyncnsq 0.1.0 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: file found to be present in multiple build targets: /workspace/builds/worker-5/source/tests/integrations_test.rs
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1048fb7935922cd22f44fdb2323892aaf013504c090060b5e934e72cb715fa6e
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "1048fb7935922cd22f44fdb2323892aaf013504c090060b5e934e72cb715fa6e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1048fb7935922cd22f44fdb2323892aaf013504c090060b5e934e72cb715fa6e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1048fb7935922cd22f44fdb2323892aaf013504c090060b5e934e72cb715fa6e", kill_on_drop: false }`
[INFO] [stdout] 1048fb7935922cd22f44fdb2323892aaf013504c090060b5e934e72cb715fa6e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] bdc75413b660140621b1b6f27a506083c1fc2018c6094b3e76f560471a130bdf
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "bdc75413b660140621b1b6f27a506083c1fc2018c6094b3e76f560471a130bdf", kill_on_drop: false }`
[INFO] [stderr] warning: file found to be present in multiple build targets: /opt/rustwide/workdir/tests/integrations_test.rs
[INFO] [stderr]    Compiling libc v0.2.65
[INFO] [stderr]    Compiling cfg-if v0.1.9
[INFO] [stderr]    Compiling autocfg v0.1.7
[INFO] [stderr]    Compiling cc v1.0.48
[INFO] [stderr]    Compiling pkg-config v0.3.17
[INFO] [stderr]    Compiling proc-macro2 v1.0.6
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]    Compiling byteorder v1.3.2
[INFO] [stderr]    Compiling syn v1.0.8
[INFO] [stderr]    Compiling futures-sink-preview v0.3.0-alpha.19
[INFO] [stderr]    Compiling futures-core-preview v0.3.0-alpha.19
[INFO] [stderr]    Compiling memchr v2.2.1
[INFO] [stderr]    Compiling futures v0.1.29
[INFO] [stderr]    Compiling futures-io-preview v0.3.0-alpha.19
[INFO] [stderr]    Compiling version_check v0.9.1
[INFO] [stderr]    Compiling pin-utils v0.1.0-alpha.4
[INFO] [stderr]    Compiling scopeguard v1.0.0
[INFO] [stderr]    Compiling serde v1.0.103
[INFO] [stderr]    Compiling smallvec v1.0.0
[INFO] [stderr]    Compiling itoa v0.4.4
[INFO] [stderr]    Compiling curl v0.4.25
[INFO] [stderr]    Compiling ryu v1.0.2
[INFO] [stderr]    Compiling isahc v0.7.6
[INFO] [stderr]    Compiling fnv v1.0.6
[INFO] [stderr]    Compiling dtoa v0.4.4
[INFO] [stderr]    Compiling mime v0.3.14
[INFO] [stderr]    Compiling once_cell v1.2.0
[INFO] [stderr]    Compiling futures-core v0.3.1
[INFO] [stderr]    Compiling futures-timer v2.0.2
[INFO] [stderr]    Compiling futures-io v0.3.1
[INFO] [stderr]    Compiling pin-project-lite v0.1.1
[INFO] [stderr]    Compiling hex v0.4.0
[INFO] [stderr]    Compiling crossbeam-utils v0.6.6
[INFO] [stderr]    Compiling lock_api v0.3.2
[INFO] [stderr]    Compiling unicode-bidi v0.3.4
[INFO] [stderr]    Compiling futures-channel-preview v0.3.0-alpha.19
[INFO] [stderr]    Compiling unicode-normalization v0.1.11
[INFO] [stderr]    Compiling crossbeam-utils v0.7.0
[INFO] [stderr]    Compiling crossbeam-epoch v0.8.0
[INFO] [stderr]    Compiling unicase v2.6.0
[INFO] [stderr]    Compiling memoffset v0.5.3
[INFO] [stderr]    Compiling parking_lot_core v0.6.2
[INFO] [stderr]    Compiling parking_lot v0.9.0
[INFO] [stderr]    Compiling smallvec v0.6.13
[INFO] [stderr]    Compiling sluice v0.4.2
[INFO] [stderr]    Compiling crossbeam-channel v0.3.9
[INFO] [stderr]    Compiling async-task v1.0.0
[INFO] [stderr]    Compiling kv-log-macro v1.0.4
[INFO] [stderr]    Compiling iovec v0.1.4
[INFO] [stderr]    Compiling num_cpus v1.11.1
[INFO] [stderr]    Compiling net2 v0.2.33
[INFO] [stderr]    Compiling socket2 v0.3.11
[INFO] [stderr]    Compiling quote v1.0.2
[INFO] [stderr]    Compiling bytes v0.4.12
[INFO] [stderr]    Compiling mio v0.6.20
[INFO] [stderr]    Compiling idna v0.2.0
[INFO] [stderr]    Compiling libnghttp2-sys v0.1.2
[INFO] [stderr]    Compiling libz-sys v1.0.25
[INFO] [stderr]    Compiling openssl-sys v0.9.53
[INFO] [stderr]    Compiling curl-sys v0.4.24
[INFO] [stderr]    Compiling mime_guess v2.0.1
[INFO] [stderr]    Compiling crossbeam-channel v0.4.0
[INFO] [stderr]    Compiling tokio-io v0.1.12
[INFO] [stderr]    Compiling http v0.1.21
[INFO] [stderr]    Compiling crossbeam-deque v0.7.2
[INFO] [stderr]    Compiling futures-util-preview v0.3.0-alpha.19
[INFO] [stderr]    Compiling url v2.1.0
[INFO] [stderr]    Compiling mio-uds v0.6.7
[INFO] [stderr]    Compiling futures-executor-preview v0.3.0-alpha.19
[INFO] [stderr]    Compiling broadcaster v0.2.6
[INFO] [stderr]    Compiling futures-preview v0.3.0-alpha.19
[INFO] [stderr]    Compiling serde_derive v1.0.103
[INFO] [stderr]    Compiling async-attributes v1.1.1
[INFO] [stderr]    Compiling async-trait v0.1.21
[INFO] [stderr]    Compiling async-std v1.4.0
[INFO] [stderr]    Compiling serde_json v1.0.42
[INFO] [stderr]    Compiling serde_urlencoded v0.6.1
[INFO] [stderr]    Compiling toml v0.5.5
[INFO] [stderr]    Compiling surf v1.0.3
[INFO] [stderr]    Compiling asyncnsq v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `async_std::future`
[INFO] [stdout]    --> src/lib.rs:170:5
[INFO] [stdout]     |
[INFO] [stdout] 170 | use async_std::future;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `IdentifyConfig`
[INFO] [stdout]  --> src/reader.rs:1:28
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::data::{Address, IdentifyConfig, Msg};
[INFO] [stdout]   |                            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `async_std::future`
[INFO] [stdout]  --> src/reader.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use async_std::future;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BytesMut`
[INFO] [stdout]   --> src/reader.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bytes::{BufMut, BytesMut};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize`
[INFO] [stdout]   --> src/reader.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::json`
[INFO] [stdout]   --> src/reader.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde_json::json;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `async_std::future`
[INFO] [stdout]  --> src/writer.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use async_std::future;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Mutex`, `Receiver`, `Sender`, `channel`
[INFO] [stdout]  --> src/writer.rs:5:23
[INFO] [stdout]   |
[INFO] [stdout] 5 | use async_std::sync::{channel, Arc, Mutex, Receiver, Sender};
[INFO] [stdout]   |                       ^^^^^^^       ^^^^^  ^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BytesMut`
[INFO] [stdout]   --> src/writer.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bytes::{BufMut, BytesMut};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserialize`
[INFO] [stdout]   --> src/writer.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the trait `MsgHandler` cannot be made into an object
[INFO] [stdout]    --> src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(where_clauses_object_safety)]` on by default
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
[INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
[INFO] [stdout]    --> src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub trait MsgHandler {
[INFO] [stdout]     |           ---------- this trait cannot be made into an object...
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^ ...because method `handler` references the `Self` type in its `where` clause
[INFO] [stdout]     = help: consider moving `handler` to another trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/lib.rs:305:5
[INFO] [stdout]     |
[INFO] [stdout] 288 | /     loop {
[INFO] [stdout] 289 | |         reader.sub(nsq_topic.as_str(), nsq_channel.as_str()).await?;
[INFO] [stdout] 290 | |         'a: loop {
[INFO] [stdout] 291 | |             dbg!("msg_receiver");
[INFO] [stdout] ...   |
[INFO] [stdout] 303 | |         reader.reconnect().await?;
[INFO] [stdout] 304 | |     }
[INFO] [stdout]     | |_____- any code following this expression is unreachable
[INFO] [stdout] 305 |       Ok(reader)
[INFO] [stdout]     |       ^^^^^^^^^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/reader.rs:196:9
[INFO] [stdout]     |
[INFO] [stdout] 132 | /         loop {
[INFO] [stdout] 133 | |             if let Some(mut raw_data) = raw_receiver.recv().await {
[INFO] [stdout] 134 | |                 all_data.append(&mut raw_data);
[INFO] [stdout] 135 | |             }
[INFO] [stdout] ...   |
[INFO] [stdout] 194 | |             }
[INFO] [stdout] 195 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 196 |           Ok(())
[INFO] [stdout]     |           ^^^^^^ unreachable expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/reader.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 101 | /         loop {
[INFO] [stdout] 102 | |             let mut tmpbuf = vec![0u8; 1024];
[INFO] [stdout] 103 | |             dbg!("wait for read");
[INFO] [stdout] 104 | |             let n = reader.read(&mut tmpbuf).await?;
[INFO] [stdout] ...   |
[INFO] [stdout] 118 | |             }
[INFO] [stdout] 119 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 120 |           dbg!("read_data finish");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/writer.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 95  | /         loop {
[INFO] [stdout] 96  | |             let mut tmpbuf = vec![0u8; 1024];
[INFO] [stdout] 97  | |             dbg!("wait for read");
[INFO] [stdout] 98  | |             let n = reader.read(&mut tmpbuf).await?;
[INFO] [stdout] ...   |
[INFO] [stdout] 106 | |             }
[INFO] [stdout] 107 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 108 |           dbg!("read_data finish");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `m_interval`
[INFO] [stdout]    --> src/lib.rs:230:22
[INFO] [stdout]     |
[INFO] [stdout] 230 |                 Some(m_interval) => {
[INFO] [stdout]     |                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_m_interval`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tmp`
[INFO] [stdout]   --> src/reader.rs:53:13
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let tmp = writer.write_all("  V2".as_bytes()).await?;
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_tmp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tmp`
[INFO] [stdout]   --> src/writer.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 32 |         let tmp = writer.write_all("  V2".as_bytes()).await?;
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_tmp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/lib.rs:231:21
[INFO] [stdout]     |
[INFO] [stdout] 231 |                     self.nsqlookup(handler.clone()).await;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Vec::<T, A>::split_off` that must be used
[INFO] [stdout]    --> src/reader.rs:107:17
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 tmpbuf.split_off(n);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: use `.truncate()` if you don't need the other half
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Vec::<T, A>::split_off` that must be used
[INFO] [stdout]    --> src/writer.rs:101:17
[INFO] [stdout]     |
[INFO] [stdout] 101 |                 tmpbuf.split_off(n);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: use `.truncate()` if you don't need the other half
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 21 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the trait `MsgHandler` cannot be made into an object
[INFO] [stdout]    --> /opt/rustwide/workdir/src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(where_clauses_object_safety)]` on by default
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
[INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
[INFO] [stdout]    --> /opt/rustwide/workdir/src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^ the trait cannot be made into an object because method `handler` references the `Self` type in its `where` clause
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> tests/integrations_test.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut reader = subscribe(
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> tests/integrations_test.rs:109:5
[INFO] [stdout]     |
[INFO] [stdout] 88  | /     loop {
[INFO] [stdout] 89  | |         let tt = TestMsg {
[INFO] [stdout] 90  | |             name: "ss".to_string(),
[INFO] [stdout] 91  | |         };
[INFO] [stdout] ...   |
[INFO] [stdout] 107 | |         task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout] 108 | |     }
[INFO] [stdout]     | |_____- any code following this expression is unreachable
[INFO] [stdout] 109 |       Ok(())
[INFO] [stdout]     |       ^^^^^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> tests/integrations_test.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |     if let Ok(res) = msg.req(1000).await {
[INFO] [stdout]    |               ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `reader`
[INFO] [stdout]   --> tests/integrations_test.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut reader = subscribe(
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `test_reader`
[INFO] [stdout]   --> tests/integrations_test.rs:44:10
[INFO] [stdout]    |
[INFO] [stdout] 44 | async fn test_reader() -> io::Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `test_writer`
[INFO] [stdout]   --> tests/integrations_test.rs:79:10
[INFO] [stdout]    |
[INFO] [stdout] 79 | async fn test_writer() -> io::Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> tests/integrations_test.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |         dbg!(res);
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 8 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1m 10s
[INFO] running `Command { std: "docker" "inspect" "bdc75413b660140621b1b6f27a506083c1fc2018c6094b3e76f560471a130bdf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bdc75413b660140621b1b6f27a506083c1fc2018c6094b3e76f560471a130bdf", kill_on_drop: false }`
[INFO] [stdout] bdc75413b660140621b1b6f27a506083c1fc2018c6094b3e76f560471a130bdf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2133849a7022716f618db3c4599e9bcab9de68ceb07e47849bf468de9dbb77a5
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "2133849a7022716f618db3c4599e9bcab9de68ceb07e47849bf468de9dbb77a5", kill_on_drop: false }`
[INFO] [stderr] warning: file found to be present in multiple build targets: /opt/rustwide/workdir/tests/integrations_test.rs
[INFO] [stdout] warning: unused import: `async_std::future`
[INFO] [stdout]    --> src/lib.rs:170:5
[INFO] [stdout]     |
[INFO] [stdout] 170 | use async_std::future;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `IdentifyConfig`
[INFO] [stdout]  --> src/reader.rs:1:28
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::data::{Address, IdentifyConfig, Msg};
[INFO] [stdout]   |                            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `async_std::future`
[INFO] [stdout]  --> src/reader.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use async_std::future;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BytesMut`
[INFO] [stdout]   --> src/reader.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bytes::{BufMut, BytesMut};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize`
[INFO] [stdout]   --> src/reader.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::json`
[INFO] [stdout]   --> src/reader.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde_json::json;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `async_std::future`
[INFO] [stdout]  --> src/writer.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use async_std::future;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Mutex`, `Receiver`, `Sender`, `channel`
[INFO] [stdout]  --> src/writer.rs:5:23
[INFO] [stdout]   |
[INFO] [stdout] 5 | use async_std::sync::{channel, Arc, Mutex, Receiver, Sender};
[INFO] [stdout]   |                       ^^^^^^^       ^^^^^  ^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BytesMut`
[INFO] [stdout]   --> src/writer.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bytes::{BufMut, BytesMut};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserialize`
[INFO] [stdout]   --> src/writer.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the trait `MsgHandler` cannot be made into an object
[INFO] [stdout]    --> src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(where_clauses_object_safety)]` on by default
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
[INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
[INFO] [stdout]    --> src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub trait MsgHandler {
[INFO] [stdout]     |           ---------- this trait cannot be made into an object...
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^ ...because method `handler` references the `Self` type in its `where` clause
[INFO] [stdout]     = help: consider moving `handler` to another trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/lib.rs:305:5
[INFO] [stdout]     |
[INFO] [stdout] 288 | /     loop {
[INFO] [stdout] 289 | |         reader.sub(nsq_topic.as_str(), nsq_channel.as_str()).await?;
[INFO] [stdout] 290 | |         'a: loop {
[INFO] [stdout] 291 | |             dbg!("msg_receiver");
[INFO] [stdout] ...   |
[INFO] [stdout] 303 | |         reader.reconnect().await?;
[INFO] [stdout] 304 | |     }
[INFO] [stdout]     | |_____- any code following this expression is unreachable
[INFO] [stdout] 305 |       Ok(reader)
[INFO] [stdout]     |       ^^^^^^^^^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/reader.rs:196:9
[INFO] [stdout]     |
[INFO] [stdout] 132 | /         loop {
[INFO] [stdout] 133 | |             if let Some(mut raw_data) = raw_receiver.recv().await {
[INFO] [stdout] 134 | |                 all_data.append(&mut raw_data);
[INFO] [stdout] 135 | |             }
[INFO] [stdout] ...   |
[INFO] [stdout] 194 | |             }
[INFO] [stdout] 195 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 196 |           Ok(())
[INFO] [stdout]     |           ^^^^^^ unreachable expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/reader.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 101 | /         loop {
[INFO] [stdout] 102 | |             let mut tmpbuf = vec![0u8; 1024];
[INFO] [stdout] 103 | |             dbg!("wait for read");
[INFO] [stdout] 104 | |             let n = reader.read(&mut tmpbuf).await?;
[INFO] [stdout] ...   |
[INFO] [stdout] 118 | |             }
[INFO] [stdout] 119 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 120 |           dbg!("read_data finish");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling asyncnsq v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/writer.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 95  | /         loop {
[INFO] [stdout] 96  | |             let mut tmpbuf = vec![0u8; 1024];
[INFO] [stdout] 97  | |             dbg!("wait for read");
[INFO] [stdout] 98  | |             let n = reader.read(&mut tmpbuf).await?;
[INFO] [stdout] ...   |
[INFO] [stdout] 106 | |             }
[INFO] [stdout] 107 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 108 |           dbg!("read_data finish");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `m_interval`
[INFO] [stdout]    --> src/lib.rs:230:22
[INFO] [stdout]     |
[INFO] [stdout] 230 |                 Some(m_interval) => {
[INFO] [stdout]     |                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_m_interval`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tmp`
[INFO] [stdout]   --> src/reader.rs:53:13
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let tmp = writer.write_all("  V2".as_bytes()).await?;
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_tmp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tmp`
[INFO] [stdout]   --> src/writer.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 32 |         let tmp = writer.write_all("  V2".as_bytes()).await?;
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_tmp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/lib.rs:231:21
[INFO] [stdout]     |
[INFO] [stdout] 231 |                     self.nsqlookup(handler.clone()).await;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Vec::<T, A>::split_off` that must be used
[INFO] [stdout]    --> src/reader.rs:107:17
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 tmpbuf.split_off(n);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: use `.truncate()` if you don't need the other half
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Vec::<T, A>::split_off` that must be used
[INFO] [stdout]    --> src/writer.rs:101:17
[INFO] [stdout]     |
[INFO] [stdout] 101 |                 tmpbuf.split_off(n);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: use `.truncate()` if you don't need the other half
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 21 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the trait `MsgHandler` cannot be made into an object
[INFO] [stdout]    --> /opt/rustwide/workdir/src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(where_clauses_object_safety)]` on by default
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
[INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
[INFO] [stdout]    --> /opt/rustwide/workdir/src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^ the trait cannot be made into an object because method `handler` references the `Self` type in its `where` clause
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> tests/integrations_test.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut reader = subscribe(
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> tests/integrations_test.rs:109:5
[INFO] [stdout]     |
[INFO] [stdout] 88  | /     loop {
[INFO] [stdout] 89  | |         let tt = TestMsg {
[INFO] [stdout] 90  | |             name: "ss".to_string(),
[INFO] [stdout] 91  | |         };
[INFO] [stdout] ...   |
[INFO] [stdout] 107 | |         task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout] 108 | |     }
[INFO] [stdout]     | |_____- any code following this expression is unreachable
[INFO] [stdout] 109 |       Ok(())
[INFO] [stdout]     |       ^^^^^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> tests/integrations_test.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |     if let Ok(res) = msg.req(1000).await {
[INFO] [stdout]    |               ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `reader`
[INFO] [stdout]   --> tests/integrations_test.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut reader = subscribe(
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `test_reader`
[INFO] [stdout]   --> tests/integrations_test.rs:44:10
[INFO] [stdout]    |
[INFO] [stdout] 44 | async fn test_reader() -> io::Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `test_writer`
[INFO] [stdout]   --> tests/integrations_test.rs:79:10
[INFO] [stdout]    |
[INFO] [stdout] 79 | async fn test_writer() -> io::Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> tests/integrations_test.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |         dbg!(res);
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 8 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the trait `MsgHandler` cannot be made into an object
[INFO] [stdout]    --> /opt/rustwide/workdir/src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(where_clauses_object_safety)]` on by default
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
[INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
[INFO] [stdout]    --> /opt/rustwide/workdir/src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^ the trait cannot be made into an object because method `handler` references the `Self` type in its `where` clause
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> tests/integrations_test.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut reader = subscribe(
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> tests/integrations_test.rs:109:5
[INFO] [stdout]     |
[INFO] [stdout] 88  | /     loop {
[INFO] [stdout] 89  | |         let tt = TestMsg {
[INFO] [stdout] 90  | |             name: "ss".to_string(),
[INFO] [stdout] 91  | |         };
[INFO] [stdout] ...   |
[INFO] [stdout] 107 | |         task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout] 108 | |     }
[INFO] [stdout]     | |_____- any code following this expression is unreachable
[INFO] [stdout] 109 |       Ok(())
[INFO] [stdout]     |       ^^^^^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the trait `MsgHandler` cannot be made into an object
[INFO] [stdout]    --> /opt/rustwide/workdir/src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(where_clauses_object_safety)]` on by default
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
[INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
[INFO] [stdout]    --> /opt/rustwide/workdir/src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^ the trait cannot be made into an object because method `handler` references the `Self` type in its `where` clause
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> tests/integrations_test.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut reader = subscribe(
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> tests/integrations_test.rs:109:5
[INFO] [stdout]     |
[INFO] [stdout] 88  | /     loop {
[INFO] [stdout] 89  | |         let tt = TestMsg {
[INFO] [stdout] 90  | |             name: "ss".to_string(),
[INFO] [stdout] 91  | |         };
[INFO] [stdout] ...   |
[INFO] [stdout] 107 | |         task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout] 108 | |     }
[INFO] [stdout]     | |_____- any code following this expression is unreachable
[INFO] [stdout] 109 |       Ok(())
[INFO] [stdout]     |       ^^^^^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `async_std::future`
[INFO] [stdout]    --> src/lib.rs:170:5
[INFO] [stdout]     |
[INFO] [stdout] 170 | use async_std::future;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> tests/integrations_test.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |     if let Ok(res) = msg.req(1000).await {
[INFO] [stdout]    |               ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `reader`
[INFO] [stdout]   --> tests/integrations_test.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut reader = subscribe(
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `IdentifyConfig`
[INFO] [stdout]  --> src/reader.rs:1:28
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::data::{Address, IdentifyConfig, Msg};
[INFO] [stdout]   |                            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `async_std::future`
[INFO] [stdout]  --> src/reader.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use async_std::future;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BytesMut`
[INFO] [stdout]   --> src/reader.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bytes::{BufMut, BytesMut};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize`
[INFO] [stdout]   --> src/reader.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::json`
[INFO] [stdout]   --> src/reader.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde_json::json;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `async_std::future`
[INFO] [stdout]  --> src/writer.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use async_std::future;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Mutex`, `Receiver`, `Sender`, `channel`
[INFO] [stdout]  --> src/writer.rs:5:23
[INFO] [stdout]   |
[INFO] [stdout] 5 | use async_std::sync::{channel, Arc, Mutex, Receiver, Sender};
[INFO] [stdout]   |                       ^^^^^^^       ^^^^^  ^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BytesMut`
[INFO] [stdout]   --> src/writer.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bytes::{BufMut, BytesMut};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserialize`
[INFO] [stdout]   --> src/writer.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `test_reader`
[INFO] [stdout]   --> tests/integrations_test.rs:44:10
[INFO] [stdout]    |
[INFO] [stdout] 44 | async fn test_reader() -> io::Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `test_writer`
[INFO] [stdout]   --> tests/integrations_test.rs:79:10
[INFO] [stdout]    |
[INFO] [stdout] 79 | async fn test_writer() -> io::Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> tests/integrations_test.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |     if let Ok(res) = msg.req(1000).await {
[INFO] [stdout]    |               ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `reader`
[INFO] [stdout]   --> tests/integrations_test.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut reader = subscribe(
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> tests/integrations_test.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |         dbg!(res);
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `test_reader`
[INFO] [stdout]   --> tests/integrations_test.rs:44:10
[INFO] [stdout]    |
[INFO] [stdout] 44 | async fn test_reader() -> io::Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `test_writer`
[INFO] [stdout]   --> tests/integrations_test.rs:79:10
[INFO] [stdout]    |
[INFO] [stdout] 79 | async fn test_writer() -> io::Result<()> {
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> tests/integrations_test.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |         dbg!(res);
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the trait `MsgHandler` cannot be made into an object
[INFO] [stdout]    --> src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(where_clauses_object_safety)]` on by default
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
[INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
[INFO] [stdout]    --> src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub trait MsgHandler {
[INFO] [stdout]     |           ---------- this trait cannot be made into an object...
[INFO] [stdout] 193 |     async fn handler(&self, msg: Msg) -> Option<Msg> {
[INFO] [stdout]     |              ^^^^^^^ ...because method `handler` references the `Self` type in its `where` clause
[INFO] [stdout]     = help: consider moving `handler` to another trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/lib.rs:305:5
[INFO] [stdout]     |
[INFO] [stdout] 288 | /     loop {
[INFO] [stdout] 289 | |         reader.sub(nsq_topic.as_str(), nsq_channel.as_str()).await?;
[INFO] [stdout] 290 | |         'a: loop {
[INFO] [stdout] 291 | |             dbg!("msg_receiver");
[INFO] [stdout] ...   |
[INFO] [stdout] 303 | |         reader.reconnect().await?;
[INFO] [stdout] 304 | |     }
[INFO] [stdout]     | |_____- any code following this expression is unreachable
[INFO] [stdout] 305 |       Ok(reader)
[INFO] [stdout]     |       ^^^^^^^^^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/reader.rs:196:9
[INFO] [stdout]     |
[INFO] [stdout] 132 | /         loop {
[INFO] [stdout] 133 | |             if let Some(mut raw_data) = raw_receiver.recv().await {
[INFO] [stdout] 134 | |                 all_data.append(&mut raw_data);
[INFO] [stdout] 135 | |             }
[INFO] [stdout] ...   |
[INFO] [stdout] 194 | |             }
[INFO] [stdout] 195 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 196 |           Ok(())
[INFO] [stdout]     |           ^^^^^^ unreachable expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/reader.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 101 | /         loop {
[INFO] [stdout] 102 | |             let mut tmpbuf = vec![0u8; 1024];
[INFO] [stdout] 103 | |             dbg!("wait for read");
[INFO] [stdout] 104 | |             let n = reader.read(&mut tmpbuf).await?;
[INFO] [stdout] ...   |
[INFO] [stdout] 118 | |             }
[INFO] [stdout] 119 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 120 |           dbg!("read_data finish");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/writer.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 95  | /         loop {
[INFO] [stdout] 96  | |             let mut tmpbuf = vec![0u8; 1024];
[INFO] [stdout] 97  | |             dbg!("wait for read");
[INFO] [stdout] 98  | |             let n = reader.read(&mut tmpbuf).await?;
[INFO] [stdout] ...   |
[INFO] [stdout] 106 | |             }
[INFO] [stdout] 107 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 108 |           dbg!("read_data finish");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `m_interval`
[INFO] [stdout]    --> src/lib.rs:230:22
[INFO] [stdout]     |
[INFO] [stdout] 230 |                 Some(m_interval) => {
[INFO] [stdout]     |                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_m_interval`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tmp`
[INFO] [stdout]   --> src/reader.rs:53:13
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let tmp = writer.write_all("  V2".as_bytes()).await?;
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_tmp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tmp`
[INFO] [stdout]   --> src/writer.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 32 |         let tmp = writer.write_all("  V2".as_bytes()).await?;
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_tmp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/lib.rs:231:21
[INFO] [stdout]     |
[INFO] [stdout] 231 |                     self.nsqlookup(handler.clone()).await;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Vec::<T, A>::split_off` that must be used
[INFO] [stdout]    --> src/reader.rs:107:17
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 tmpbuf.split_off(n);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: use `.truncate()` if you don't need the other half
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Vec::<T, A>::split_off` that must be used
[INFO] [stdout]    --> src/writer.rs:101:17
[INFO] [stdout]     |
[INFO] [stdout] 101 |                 tmpbuf.split_off(n);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: use `.truncate()` if you don't need the other half
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 8 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 8 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 21 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 3.00s
[INFO] running `Command { std: "docker" "inspect" "2133849a7022716f618db3c4599e9bcab9de68ceb07e47849bf468de9dbb77a5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2133849a7022716f618db3c4599e9bcab9de68ceb07e47849bf468de9dbb77a5", kill_on_drop: false }`
[INFO] [stdout] 2133849a7022716f618db3c4599e9bcab9de68ceb07e47849bf468de9dbb77a5
